<template>
  <div class="menu">
    <PageContent
      @edit-click="handleEditClick"
      @new-click="handleNewClick"
      ref="contentRef"
      :content-config="contentConfig"
    ></PageContent>
  </div>
</template>

<script setup lang="ts" name="menu">
import PageContent from '@/components/page-content/page-content.vue'
import contentConfig from './config/content.config'
import usePageModal from '@/hooks/usePageModal'
import usePageCountent from '@/hooks/usePageContent'

// 逻辑关系
const { contentRef } = usePageCountent()
const { handleNewClick, handleEditClick } = usePageModal()
</script>

<style scoped>
.menu {
}
</style>
